// app.js
const ROOT_URL = "https://sahar.aynak.tech/";
const API_URL = ROOT_URL + "api/";
import Lang from 'Lang.js';
App({
  onLaunch() {
    wx.getSystemInfo({
      success: e => {
        this.globalData.StatusBar = e.statusBarHeight;
        let custom = wx.getMenuButtonBoundingClientRect();
        this.globalData.Custom = custom;  
        this.globalData.CustomBar = custom.bottom + custom.top - e.statusBarHeight;
      }
    })
  },
  globalData: {
    API_URL:API_URL,
    ROOT_URL:ROOT_URL,
    userInfo: null,
    Lang:Lang,
  }
})
